<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="UsertableCreateDlg" widgetVar="UsertableCreateDialog" modal="true" resizable="false" appendTo="@(body)" header="#{myBundle.CreateUsertableTitle}" closeOnEscape="true">

            <h:form id="UsertableCreateForm">

                <h:panelGroup id="display">
                    <p:panelGrid columns="2">


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_name}" for="name" />
                        <p:inputText id="name" value="#{usertableController.selected.name}" title="#{myBundle.CreateUsertableTitle_name}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_name}" size="50" maxlength="50"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_password}" for="password" />
                        <p:inputText id="password" value="#{usertableController.selected.password}" title="#{myBundle.CreateUsertableTitle_password}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_password}" size="50" maxlength="50"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_ip}" for="ip" />
                        <p:inputText id="ip" value="#{usertableController.selected.ip}" title="#{myBundle.CreateUsertableTitle_ip}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_ip}" size="15" maxlength="15"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_status}" for="status" />
                        <p:inputText id="status" value="#{usertableController.selected.status}" title="#{myBundle.CreateUsertableTitle_status}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_status}" size="10" maxlength="10"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_vorname}" for="vorname" />
                        <p:inputText id="vorname" value="#{usertableController.selected.vorname}" title="#{myBundle.CreateUsertableTitle_vorname}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_vorname}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_nachname}" for="nachname" />
                        <p:inputText id="nachname" value="#{usertableController.selected.nachname}" title="#{myBundle.CreateUsertableTitle_nachname}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_nachname}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_avatar}" for="avatar" />
                        <p:inputText id="avatar" value="#{usertableController.selected.avatar}" title="#{myBundle.CreateUsertableTitle_avatar}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_avatar}" size="255" maxlength="255"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_clan}" for="clan" />
                        <p:inputText id="clan" value="#{usertableController.selected.clan}" title="#{myBundle.CreateUsertableTitle_clan}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_clan}" size="100" maxlength="100"/>


                        <p:outputLabel value="#{myBundle.CreateUsertableLabel_session}" for="session" />
                        <p:inputText id="session" value="#{usertableController.selected.session}" title="#{myBundle.CreateUsertableTitle_session}" required="true" requiredMessage="#{myBundle.CreateUsertableRequiredMessage_session}" size="255" maxlength="255"/>
                    </p:panelGrid>
                    <p:commandButton actionListener="#{usertableController.saveNew}" value="#{myBundle.Save}" update="display,:UsertableListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,UsertableCreateDialog);">
                        <p:confirm header="#{myBundle.ConfirmationHeader}" message="#{myBundle.ConfirmCreateMessage}" icon="ui-icon-alert"/>
                    </p:commandButton>

                    <p:commandButton value="#{myBundle.Cancel}" onclick="UsertableCreateDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
